<?php

namespace App\Exceptions;

/***
 * API 自定义异常类
 */
use Exception;

class ApiException extends Exception
{

    //自定义异常处理
    public function SetErrorMessage( $code,$message = ''){
        $this->errorMsg  = $message;
        $this->errorCode  = $code;
        return $this;
    }

}